package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ex-kuangxiaomin101 on 2015-12-28.
 */
public class PersonArdessBean implements Parcelable {

    private int id;
    private String address;
    private int flag;//是否为常用地址1代表是 0不是

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.address);
        dest.writeInt(this.flag);
    }

    public PersonArdessBean() {
    }

    protected PersonArdessBean(Parcel in) {
        this.id = in.readInt();
        this.address = in.readString();
        this.flag = in.readInt();
    }

    public static final Creator<PersonArdessBean> CREATOR = new Creator<PersonArdessBean>() {
        public PersonArdessBean createFromParcel(Parcel source) {
            return new PersonArdessBean(source);
        }

        public PersonArdessBean[] newArray(int size) {
            return new PersonArdessBean[size];
        }
    };

    @Override
    public String toString() {
        return "PersonArdessBean{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", flag=" + flag +
                '}';
    }
}
